package scrolls;

import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JPanel;

public class Frame
{

	static int width = 817;
	static int height = 600;
	static JFrame menu = new JFrame("The Younger Scrolls - Menu");

	public static void main(String[] args)
	{
		Menu();
	}

	private static void Menu()
	{

		menu.setSize(width, height);
		ImageIcon img = new ImageIcon("src/res/icon.png");
		menu.setIconImage(img.getImage());
		menu.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		menu.setVisible(true);
		menu.setLocationRelativeTo(null);

		JPanel menuJPanel = new JPanel(null);
		menuJPanel.setVisible(true);
		menu.add(menuJPanel);

		JButton play = new JButton("Play");
		play.setBounds(325, 115, 150, 30);
		menuJPanel.add(play, null);
		play.addActionListener(new Input());

	}
}
